<?php
class ProductskulogModel extends Model {
	
	//( $prosku, $prosku, $proinventory, $nick , $num, $type , $logtext );
	function addlog(  $prosku, $skuid, $proinventory, $seller_nick , $num, $type, $logtext='') {
		/*
		 * 
		 	$log['skuid'] = $skuid;
			$log['proinventory'] = $proinventory;
			$log['addtime'] = date('Y-m-s H:i:s');
			$log['seller_nick'] = $_SESSION['seller_nick']; 
		 */
		$log['prosku'] = $prosku;
		$log['skuid'] = $skuid;
		$log['proinventory'] = $proinventory;
		$log['num'] = $num;
		$log['addtime'] = date('Y-m-d H:i:s');
		$log['seller_nick'] = $seller_nick;
		$log['logtext'] = $logtext;
		$v = D('Productskulog')->add( $log );
		if(! $v ){
			return false ;
		}		
		return true;
	}
}